package com.j2ee.static_factory;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author ywb
 * @since 2021/9/18
 */
public class TestBean2 {
    public static void main(String[] args) {
        ApplicationContext applicationContext = new ClassPathXmlApplicationContext("com/j2ee/static_factory/Bean2.xml");
        Bean2 bean2 =(Bean2) applicationContext.getBean("bean2");
        System.out.println(bean2);
    }
}
